﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace YAMN_Cinemas.Presentation
{
    public partial class Admin_EditScreenTime1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
         protected void btn_ScreenTime_Click(object sender, EventArgs e)
        {
            using (TheatreEntities te = new TheatreEntities())
            {
                Screen_Timing addtime = new Screen_Timing();
                addtime.Screen_Time = txt_ScreenTime.Text;
                addtime.Description = txt_Desciption.Text;
                te.AddToScreen_Timings(addtime);
                
                te.SaveChanges();

                
                Response.Redirect("http://localhost:6500/Presentation/Admin_EditScreenTime1.aspx");
               

            }
        }

        protected void btn_CancelScreenTime_Click(object sender, EventArgs e)
        {
            Response.Redirect("http://localhost:6500/Presentation/Admin_Home.aspx");
        }
        }
    }

    
